home *** CD-ROM | disk | FTP | other *** search
/ Champak 143 / (Vol 143) Nov 15 2011.iso / Games / bratz_fashion_designer.swf / scripts / DefineButton2_1154 / BUTTONCONDACTION on(release).as
Text File  |  2011-11-15  |  869b  |  29 lines

  1. on(release){
  2.    var pj = new PrintJob();
  3.    pj.start();
  4.    if(pj.orientation == "portrait")
  5.    {
  6.       EndPrint._rotation = 90;
  7.       EndPrint._xscale = 130;
  8.       EndPrint._yscale = EndPrint._xscale;
  9.       EndPrint.PrintStuff._visible = true;
  10.       pj.addPage(EndPrint,{xMin:-60,xMax:800,yMin:0,yMax:420});
  11.       EndPrint.PrintStuff._visible = false;
  12.       EndPrint._xscale = 100;
  13.       EndPrint._yscale = EndPrint._xscale;
  14.       EndPrint._rotation = 0;
  15.    }
  16.    else if(pj.orientation == "landscape")
  17.    {
  18.       EndPrint._xscale = 130;
  19.       EndPrint._yscale = EndPrint._xscale;
  20.       EndPrint.PrintStuff._visible = true;
  21.       pj.addPage(EndPrint,{xMin:-60,xMax:800,yMin:-25,yMax:420});
  22.       EndPrint.PrintStuff._visible = false;
  23.       EndPrint._xscale = 100;
  24.       EndPrint._yscale = EndPrint._xscale;
  25.    }
  26.    pj.send();
  27.    delete pj;
  28. }
  29.